package com.woniu.woniuticket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Lucas
 * @since 2020-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Movie implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 电影id
     */
    @TableId(value = "movie_id", type = IdType.AUTO)

    private Integer movieId;

    private List<ShowSession> showSessions;//一对多的时候用
    /**
     * 电影名称
     */
    private String movieName;

    /**
     * 电影剧情
     */
    private String moviePlot;

    //电影语言
    private String movieLanguage;
    /**
     * 电影主演
     */
    private String movieMainPerformer;

    /**
     * 电影导演
     */
    private String movieDirector;

    /**
     * 电影海报保存路径
     */
    private String moviePosterPath;

    /**
     * 电影预告片保存路径
     */
    private String movieTrailerPath;

    /**
     * 电影上映时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date movieReleaseDate;

    /**
     * 影院id
     */
    private Integer cinemaId;

    /**
     * 电影票价
     */
//    private BigDecimal movieTicketPrice;


}
